package com.yoyo.itravel.service;

import com.yoyo.itravel.bean.Province;
import com.yoyo.itravel.exceptions.ProvinceException;

import java.util.List;

/**
 * @Description 省份操作服务层接口
 *
 * @author HZX
 * @date 2020/5/9 13:29
 */
public interface IProvinceService {

    /**
     * @Description 新增省份
     *
     * @param province
     * @return boolean
     */
    boolean addSightTheme(Province province) throws ProvinceException;

    /**
     * @Description 查找所有的省份
     *
     * @param
     * @return java.util.List<cn.hut.travel.bean.SightTheme>
     */
    List<Province> findAllProvince() throws ProvinceException;

    /**
     * @Description 通过景点名称查找景点
     *
     * @param province
     * @return cn.hut.travel.bean.Province
     */
    Province findByName(String province) throws ProvinceException;
}
